<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: huajie <banhuajie@163.com>
// +----------------------------------------------------------------------
namespace Admin\Controller;

/**
 * 加载前台模块控制器
 * @author tangtanglove
 */
class ManagerController extends AdminController {

    public function execute($_module = null, $_controller = null, $_action = null){
        if(C('URL_CASE_INSENSITIVE')){
            $_module       =   ucfirst(parse_name($_module, 1));
            $_controller    =   parse_name($_controller,1);
        }

        if(!empty($_module) && !empty($_controller) && !empty($_action)){
            $Application = A("{$_module}/{$_controller}")->$_action();
        } else {
            $this->error('没有指定模块名称，控制器或操作！');
        }
    }


}
